package com.codeyang.service.impl;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codeyang.domain.PickAddr;
import com.codeyang.mapper.PickAddrMapper;
import com.codeyang.service.PickAddrService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 描述: TO-删除标志-DO
 *
 * @author CodeYang_Site
 * @version 2021/5/26 13:53
 */
@Slf4j
@Service
public class PickAddrServiceImpl extends ServiceImpl<PickAddrMapper, PickAddr> implements PickAddrService {


    /**
     * 新增自提点
     *
     * @param pickAddr
     * @return
     */
    @Override
    public boolean save(PickAddr pickAddr) {
        log.info("新增自提点{}", JSON.toJSONString(pickAddr));
        pickAddr.setShopId(1L);
        return super.save(pickAddr);
    }
}
